# This dockerfile is for spring boot jar app.
# Version 1.0

# Base images.
FROM 10.36.20.43:5000/linkmes:8u302-jdk-oraclelinux7

# Author.
MAINTAINER dailibo <dailibo@wisdytech.cn>

ADD ./target/qm.jar /opt

#Set timezone
RUN  mkdir -p /var/log/qm

ENV JAVA_OPTS=$JAVA_OPTS

# Define default command.
ENTRYPOINT [ "sh", "-c", "java $JAVA_OPTS -Djava.security.egd=file:/dev/./urandom -jar /opt/qm.jar" ]

# Expose ports.
EXPOSE 8080
